#!/usr/bin/env python
# coding: utf-8

import sys
sys.path.append('./Lib/')
from File_Operation import *
from ARCH_Operation import *
from BASDA_Operation import *
from Plot_Data_Operation import *





parton_pt="10"
event_kind=file_name+"_"+parton_pt
ARCH_tmp_folder= '/home/yancy/Software/ARCH_test/events/Event_Analyse_scan_4b0j_{event}/'.format(event=event_kind)
ARCH_tmp_name = ARCH_tmp_folder+'tmp/sigh_w4b_{}.dat'
total_file_num=120
ARCH_summary_folder= '/home/yancy/Software/ARCH_test/Auto_Running/output_data/BASDA_para_{}'.format(event_kind)

if(file_name=="mh_mch"):
	df_para=["mh","mch"]
elif(file_name=="sba_tb"):
	df_para=["sba","tb"]

df_name="../input_data/data/data_grid_{}.tsv".format(file_name)
hotmap_out_file="../output_data/xection/xection_for_ARCH_{fname}_{pt}.dat".format(fname=file_name,pt=parton_pt)
hotmap_variable_name="ARCH_xection"

cut_cross=Get_Cross_after_ARCH(ARCH_tmp_name, total_file_num,ARCH_summary_folder)
Generate_Hotmap_Data(df_name, df_para, cut_cross ,hotmap_out_file,hotmap_variable_name)
Generate_multi_BASDA_Control_File(cut_cross, event_kind):
